#ifndef __ENEMY_MODE_PAGE_H__
#define __ENEMY_MODE_PAGE_H__

#include "./playermodepage.h"

//result page
#define ENEMY_RESULT_PAGE "enemy_result_bkg.jpg"
#define ENEMY_RESULT_POS Point(1.5, 20)

#define ENEMY_AI_DIR "./enemymode/"

class Enemy;
class EnemyModePage : public PlayerModePage
{
public:
	EnemyModePage(string resultBkg = ENEMY_RESULT_PAGE, Point resultPos = ENEMY_RESULT_POS, string strAIDir = ENEMY_AI_DIR);
	~EnemyModePage();

private:
	void OnReadyEnd();

private:
	void LevelUp();
	void ChangeText();
	void ResetEnemies();
	Point GetEnemyPosByAngle(float angle);

	void OnEnemyDestroy(Enemy* pEnemy);
	void OnAfterRender(float differTime);

	void OnStatEnd(int playerCount, StatData* pStatDatas);

private:
	int m_level;
	int m_enemyleft;
	float m_waitTime;

	TextObj m_textLevel;
	TextObj* m_pTextLevelNum;

	TextObj m_textLeft;
	TextObj* m_pTextLeftNum;
};

#endif